package com.chinaunicom.emergency.model;


import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author liliang
 * @date 2019-12-13
 */
@Getter
@Setter
@Entity
@EqualsAndHashCode
@Table(name = "YJGL_ROLEPERMISSIONS")
@ApiModel(value="角色对应权限表")
public class Rolepermissions implements Serializable {
    @Id
    @GenericGenerator(name = "rolepermissionsUUID", strategy = "uuid")
    @GeneratedValue(generator = "rolepermissionsUUID")
    private String pid;
    @ApiModelProperty(value="权限标识符id")
    private String permissionsId;

    @ApiModelProperty(value="角色id")
    private String roleId;

    @ApiModelProperty(value="创建人")
    private String createBy;

    @ApiModelProperty(value="创建时间")
    private Date createTime;

    @ApiModelProperty(value="修改人")
    private String updateBy;

    @ApiModelProperty(value="修改时间")
    private Date updateTime;

    @ApiModelProperty(value="软删除")
    private Integer isSoftDel;

    @ApiModelProperty(value="删除人")
    private String deleteBy;

    @ApiModelProperty(value="删除时间")
    private Date deleteTime;




    @Override
    public String toString(){
        return JSONObject.toJSONString(this);
    }
}
